<@override name="title">问卷调查</@override>
<@override name="page">page-sidebar-closed</@override>
<@override name="viewstyles">
<style type="text/css">
    .chart, .pie, .bars{ height : 220px; }
</style>
</@override>
<@override name="viewbody">
<div class="row">
    <div class="col-md-12">
        <h3 class="page-title"> 问卷调查
            <small>问卷管理列表</small>
        </h3>
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="fa fa-home"></i>
                <a href="${ctx}/admin/home">
                    首页
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="#">问卷统计分析 </a>
            </li>
        </ul>
    </div>
</div>

    <#if votes??>
        <#list votes as vote>
            <#assign new_line = (vote_index % 2 == 0)>
            <#if new_line>
            <div class="row">
            </#if>
            <div class="col-md-6">
                <div class="portlet box ${new_line?string('yellow','blue')}">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-bar-chart-o"></i>${vote.title!} - 参与情况
                        </div>
                    </div>
                    <div class="portlet-body">
                        <div id="stat_chart_${vote.id!}" class="chart"
                             data-toggle="pie-chart" data-url="${ctx}/admin/vote/vote/stat/${vote.id!}"
                             data-labels="${vote.opt!}">
                        </div>
                    </div>
                </div>
            </div>
            <#if vote_index %2 == 1>
            </div>
            <div class="clearfix">
            </div>
            </#if>
        </#list>
    </#if>

</@override>
<@override name="viewmodule">vote_rsa</@override>
<@extends name="../../_basic/main.ftl"></@extends>
